package com.shen.pojo;

import java.util.Date;

/**
 * Author:shen
 * CreateDate:2020/7/2.
 * Function:
 */
public class Student {
    private Long stuno;
    private String sname;
    private String sex;
    private String telephone;
    private String qq;
    private String wechat;
    private Long gradeid;
    private Date enterdate;
    private String fromcity;
    private Date birthday;
    private String address;
    private String pass;
    private String idcardpic;

    public Student() {
    }

    public Student(Long stuno, String sname, String sex, String telephone, String qq, String wechat, Long gradeid, Date enterdate, String fromcity, Date birthday, String address, String pass, String idcardpic) {
        this.stuno = stuno;
        this.sname = sname;
        this.sex = sex;
        this.telephone = telephone;
        this.qq = qq;
        this.wechat = wechat;
        this.gradeid = gradeid;
        this.enterdate = enterdate;
        this.fromcity = fromcity;
        this.birthday = birthday;
        this.address = address;
        this.pass = pass;
        this.idcardpic = idcardpic;
    }

    public Long getStuno() {
        return stuno;
    }

    public void setStuno(Long stuno) {
        this.stuno = stuno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    /*    public void setSex(int sex) {
        if(sex==1){
            this.sex= SexEnum.male;
        }else if(sex==2){
            this.sex= SexEnum.female;
        }else if(sex==3){
            this.sex= SexEnum.transvestite;
        }else {
            this.sex=null;
        }
    }*/
    /*public void setSex(String sex) {
        if(sex.equals("男")){
            this.sex= SexEnum.male;
        }else if(sex.equals("女")){
            this.sex= SexEnum.female;
        }else if(sex.equals("人妖")){
            this.sex= SexEnum.transvestite;
        }else {
            this.sex=null;
        }
    }*/

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public Long getGradeid() {
        return gradeid;
    }

    public void setGradeid(Long gradeid) {
        this.gradeid = gradeid;
    }

    public Date getEnterdate() {
        return enterdate;
    }

    public void setEnterdate(Date enterdate) {
        this.enterdate = enterdate;
    }

    public String getFromcity() {
        return fromcity;
    }

    public void setFromcity(String fromcity) {
        this.fromcity = fromcity;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getIdcardpic() {
        return idcardpic;
    }

    public void setIdcardpic(String idcardpic) {
        this.idcardpic = idcardpic;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuno=" + stuno +
                ", sname='" + sname + '\'' +
                ", sex=" + sex +
                ", telephone='" + telephone + '\'' +
                ", qq='" + qq + '\'' +
                ", wechat='" + wechat + '\'' +
                ", gradeid=" + gradeid +
                ", enterdate=" + enterdate +
                ", fromcity='" + fromcity + '\'' +
                ", birthday=" + birthday +
                ", address='" + address + '\'' +
                ", pass='" + pass + '\'' +
                ", idcardpic='" + idcardpic + '\'' +
                '}';
    }
}
